package meiyunting.shiwuzhaoling.service;

import meiyunting.shiwuzhaoling.dto.UserRegistrationDTO;
import meiyunting.shiwuzhaoling.model.User;
import meiyunting.shiwuzhaoling.model.UserRole;

import java.util.List;

public interface UserService {
    User registerUser(UserRegistrationDTO registrationDTO);
    User findByUsername(String username);
    boolean validateUser(String username, String password);
    User getCurrentUser();
    
    // 管理员功能
    List<User> findAllUsers();
    User findById(Long id);
    void updateUserRole(Long id, UserRole role);
    void deleteUser(Long id);
    User updateUser(Long id, String username, String email, UserRole role);
} 